#ifndef DLOADPKG_H
#define DLOADPKG_H

#include "protocol.h"

class DownloadPackage : public Protocol
{
	public:
		DownloadPackage(Client*);

		bool8 recognize(uint8* Msg, uint32 Len);
		int32 start(uint8* Msg, uint32 Len);

		void netIn(int32 Amt);
		void netOut(int32 Amt);

		void fileIn(int32 Amt);
		void fileEOF();
		void fileErr(uint32 Err);   // kharmon.  04-05-07.  #19307.  Change argument to uint32 so that it overrides base class version.

	protected:
		enum { PACKETSIZE=2048 };
		uint32	pkgver;
		uint32	pkgsize;
		int32	state;
		bool8	m_multibyte;
};

#endif
